/**
  * The different fighting moves a player can perform.
  *
  * @author "Brian MacCarthy";
  * @created "2007-03-04 Brian MacCarthy";
  * @revised "$Date: 2007-03-06 19:11:00 $"; 
  */

package exfist;

public class Moves
{
	private boolean low_block,stand_block;
	protected boolean didCollide()
	{
		return true;
	}
	private int damageDone()
	{
		return 100;
	}
	/**TODO: finish this method
	 * determines if a move is blocked or not
	 * could use a number between 0 and 2 to set what type of move it is,ie 0 =normal,1 = flying,2 = sweep & check blocks accordingly.
	 * @return
	 */
	protected boolean isBlocked(int m)
	{
		if(m==0)
		{
			if(isLowBlocking()==true || isStandingBlocking()==true)
			{
				return true;
			}
		}
		if(m==1)
		{
			if(isStandingBlocking()==true)
			{
				return true;
			}
		}
		if(m==2)
		{
			if(isLowBlocking()==true)
			{
				return true;
			}
		}
		return false;
	}
	private void standingBlock()
	{
		//on key press
		stand_block=true;
		//on key release
		stand_block=false;
	}
	private void lowBlock()
	{
		//on key press
		low_block=true;
		//on key release
		low_block=false;
	}
	private boolean isLowBlocking()
	{
		return low_block;
	}
	private boolean isStandingBlocking()
	{
		return stand_block;
	}
}
